

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_LED_LIGHTS_BLOCK_1607910346240'] = function(block)
        {
            let pin = this.getFieldValue('pin');
let bt = this.getFieldValue('bt');
          
            Blockly.Arduino.definitions_['include_EXT_LED_LIGHTS_BLOCK_1607910346240'] = ``;
            Blockly.Arduino.definitions_['define_EXT_LED_LIGHTS_BLOCK_1607910346240'] = `#define LED${pin}  ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_LED_LIGHTS_BLOCK_1607910346240'] = `pinMode(LED${pin},OUTPUT);`;
             return  `digitalWrite(LED${pin},${bt});\r\n`;
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        